home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 011 / passwrd3.arc / PASSWRD3.DOC < prev   
Encoding:
Text File  |  1985-02-25  |  3.1 KB  |  91 lines

  1. Brief documentation on PWORD.ASM (also called PASSWRD2.ASM)
  2. by ... P. L. Olympia, Sysop SUGI SIG/M RBBS  301-963-5249
  3.  
  4. Thanks to John R. Petrocelli for sending me this program whose
  5. original author I don't know. Thanks, Mr. Anonymous.
  6.  
  7.    (*** SEE UPDATE AT END OF TEXT       02/05/85  CHANGES  J.R.P. ***)
  8.  
  9. PURPOSE:
  10.  
  11.      PASSWRD3.ASM is intended to produce a device driver (PASSWRD3.SYS) that
  12. that you include in your CONFIG.SYS file. This driver will ask the user
  13. on machine startup to provide a password. The user is repeatedly asked
  14. for  the password until the correct one is given.  The user cannot get
  15. out of this with CTRL-C or CTRL-BREAK, but may warmboot with CTRL-ALT-
  16. DEL.
  17.  
  18.  
  19. INSTALLATION:
  20.  
  21.      Edit the file PASSWRD3.ASM and change the password  (set  in  the
  22. distribution program as 'plan') to something else that you can  easily
  23. remember.   I suggest that you do NOT use your wife's name as everyone
  24. else in the industry does that (don't know why but 45% of my BBS users
  25. do that for some reason). The line that needs changing is this:
  26.  
  27.      PASSWORD_STORE DB 4,'plan'
  28.                        |   |__ This is the password
  29.                        |______ This is the # of chars in the password
  30.  
  31. If  you don't use ANSI.SYS as a device driver,  you may also  want  to
  32. change  the  ESC sequence for hiding/unhiding user input in the  block
  33. called MSG_1  and MSG_2.
  34.  
  35.      Next, compile the program with ASM or MASM.
  36.           MASM passwrd3
  37.  
  38.      Then LINK it: (ignore the "no stack" message)
  39.           LINK passwrd3
  40.  
  41.      Then use EXE2BIN to convert it to a SYS file:
  42.           EXE2BIN passwrd3 passwrd3.sys
  43.  
  44.      Add this line to your CONFIG.SYS file:
  45.           DEVICE=passwrd3.sys
  46.  
  47. If you use ANSI.SYS, it should come before PASSWRD3.SYS.
  48.  
  49. That's it. Reboot and watch the fun.  Enjoy ...
  50.  
  51.  
  52. P.S. For all you budding programmers, the program is a handy tool for
  53.      learning how to set up a device driver.
  54.  
  55.  
  56.  
  57. *** UPDATE   02/05/85    JOHN R. PETROCELLI  **************************
  58.  
  59.     The driver program has been revised to allow the user to "lock"
  60. the PC via a call into the device driver's code. The address of the
  61. call is placed at interupt 66h in the table of interupt vectors.
  62.  
  63.     An routine called "LOCK.COM" may be invoked to call the password
  64. routine. This will prompt the user for the password after disabling
  65. ctrl-break. The user must enter the correct password (same as on
  66. boot up) before he may access the PC.
  67.  
  68.     The reason that the call is made into the device driver's code
  69. is so that if a password change is necessary then only the device
  70. driver must be recompiled and relinked.
  71.  
  72.     In order to prepare "LOCK.COM" ---------
  73.  
  74.      Compile the program:
  75.           MASM LOCK
  76.  
  77.      Then LINK it: (ignore the "no stack" message)
  78.           LINK LOCK
  79.  
  80.      Then use EXE2BIN to convert it to a SYS file:
  81.           EXE2BIN LOCK LOCK.COM <enter>
  82.  
  83.      Then delete the LOCK.EXE file:
  84.           ERASE LOCK.EXE <enter>
  85.  
  86.     I would appreciate any comments or suggestions. Send them to:
  87.                       JOHN R. PETROCLLI
  88.                       3090 CARMAN RD.
  89.                       SCHENECTADY, N.Y. 12303
  90.  
  91.